<template>
  <div>
    <div class="up">
      <header1>猫眼电影</header1>
      <header2></header2>
      <header3></header3>
      <!-- 子路由的链接 -->
    </div>
    <div class="con">
      <router-view></router-view>
      <!-- 子路由的路由出口 -->
    </div>
  </div>
</template>

<script>
//引入第一个头部
import header1 from "@/components/commonh/header1.vue";
import header2 from "@/components/commonh/header2.vue";
import header3 from "@/components/commonh/header3.vue";

export default {
  name: "movie",
  //注册
  components: {
    header1, header2, header3,
  },
};
</script>

<style scoped>
.up {
  position: fixed;
  width: 100%;
  top: 0;
  background: #f5f5f5;
  z-index: 2;
}
.con {
  margin-top: 155px;
  margin-bottom: 50px;
  background: #f5f5f5;
  z-index: 1;
}
</style>